package com.yasaka.stock;

import com.yasaka.stock.kafkaConsumer.ConsumerMain;
import com.yasaka.stock.kafkaProducer.ProducerThread;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication(exclude={ DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
@EnableEurekaClient
public class ProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class, args);
        //new ProducerThread("118.178.243.21:9093", "shiyangtopic-test").run();
        new ConsumerMain().start();
    }

}
